<template>
  <div class="leftFirst flex">
    <div class="item shadow">
      <span class="name">非危险源</span>
      <span class="value">10</span>
    </div>
    <div class="item shadow">
      <span class="name">一级</span>
      <span class="value">1</span>
    </div>
    <div class="item shadow">
      <span class="name">二级</span>
      <span class="value">2</span>
    </div>
    <div class="item shadow">
      <span class="name">三级</span>
      <span class="value">3</span>
    </div>
    <div class="item shadow">
      <span class="name">四级</span>
      <span class="value">4</span>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.leftFirst {
  height: 100%;
}
.item {
  height: calc(100% - 10px);
  flex: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin: 5px;
  .value {
    font-size: 25px;
    padding-top: 20px;
  }
}
.item:nth-child(1) .value {
  color: greenyellow;
}
.item:nth-child(2) .value {
  color: blueviolet;
}
.item:nth-child(3) .value {
  color: #e65e6a;
}
.item:nth-child(4) .value {
  color: #f3cb57;
}
.item:nth-child(5) .value {
  color: #45a670;
}
</style>